Skip to content

Conversation

@AusafMo
Copy link

@AusafMo AusafMo commented Mar 7, 2023

on click event parameter passing formatted from
onClick ="deleteNote({{note.id}})"
to
onClick ="deleteNote('{{note.id}}')"
In Inline-Javascript, eventhandling is onclickevent = "func('parameter')" .Where parameter in this case should be inline variable block {{ parametervalue }}
now there's no "property assignment error" or expected ',' error

on click event parameter passing formatted from 
` onClick ="deleteNote({{note.id}})" `
to
`onClick ="deleteNote('{{note.id}}')"`
now there's no "property assignment error"
@santeriq
Copy link

santeriq commented May 6, 2023

man I was struggling with this one for quite a while... I was like why is this not working when its exactly as in the video

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants